﻿#ifndef REPORTINTERFACE_H
#define REPORTINTERFACE_H

#include <QObject>
#include <QFileDialog>
#include "reportManager.h"

class ReportInterface : public QObject
{
    Q_OBJECT

public:
    ReportInterface();

    Q_INVOKABLE QString     getExportPath();
    Q_INVOKABLE int         getExportType();
    Q_INVOKABLE bool        getAutoExport();
    Q_INVOKABLE QString     selectExportPath();
    Q_INVOKABLE bool        updateExportInfo(QString path, int type, bool autoExport);
    Q_INVOKABLE void        updateExperimentInfo(QVariantMap info);

    Q_INVOKABLE int         exportReport();     // 打印当前实验的报告  0:成功  1:用户取消 <0:参考隔壁的导出报告返回值

};

#endif // REPORTINTERFACE_H
